package cn.zhentao.service.impl;

import cn.zhentao.dao.EmpDao;
import cn.zhentao.pojo.Emp;
import cn.zhentao.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpDao dao;
    @Override
    public List<Emp> findAll() {
        return dao.findAll();
    }

    @Override
    public int addEmp(Emp emp) {
        return dao.addEmp(emp);
    }
}
